package com.tuling.designpattern.proxy.statics;

/**
 * @author 林瑞涛
 * @desc
 * @date 2021年08月02日 20:40
 */
public class ProxyObject extends AbstractObject{
    RealObject realObject = new RealObject();

    @Override
    public void operation() {
        //在调用目标对象之前
        System.out.println("Before Do Something!");
        realObject.operation();
        //在调用目标对象之后
        System.out.println("After Do Something");
    }
}
